package com.sun.showcase.client.query.basic;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import com.sun.showcase.client.domain.basic.Tenant;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.sun.showcase.pojo.SearchModel;

public class TenantQuery extends SearchModel<Tenant> implements Serializable {
    
  private static final long serialVersionUID = 3148176768559230877L;
    

	  /**
     * ID       db_column: id 
     */	
	private Long id;
	  /**
     * 租户编码       db_column: tenant_code 
     */	
	private String tenantCode;
	  /**
     * 租户名称       db_column: tenant_name 
     */	
	private String tenantName;
	/**
	 * 封装修改时的where条件  key为数据库字段值  value为条件值
	 * */
	private Map<String,Object> searchMap = new HashMap<String,Object>();
	/**
	 * 数据表主键id的数组
	 * */
	private Long ids[];

	public Long getId() {
		return this.id;
	}
	
	public void setId(Long value) {
		this.id = value;
	}
	
	public String getTenantCode() {
		return this.tenantCode;
	}
	
	public void setTenantCode(String value) {
		this.tenantCode = value;
	}
	
	public String getTenantName() {
		return this.tenantName;
	}
	
	public void setTenantName(String value) {
		this.tenantName = value;
	}
	
	public Map<String, Object> getSearchMap() {
		return searchMap;
	}
	
	public void setSearchMap(Map<String, Object> searchMap) {
		this.searchMap = searchMap;
	}
	
	public Long[] getIds() {
		return ids;
	}
	
	public void setIds(Long[] ids) {
		this.ids = ids;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this,ToStringStyle.DEFAULT_STYLE);
	}
	
}

